package com.lkd.controller;

import com.lkd.dto.OrderDTO;
import com.lkd.dto.OrderQueryDTO;
import com.lkd.entity.Order;
import com.lkd.result.TableInfo;
import com.lkd.service.OrderService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Z.lx
 * @Date: 2025/8/22 21:03
 * @Description:
 **/
@RestController
@RequestMapping("/api/order-service/order")
@Slf4j
@AllArgsConstructor
public class OrderController {
    private final OrderService orderService;
    @GetMapping("/search")
    public TableInfo<Order> list(OrderQueryDTO orderQueryDTO){
        log.info("商品搜索:");
        return orderService.list(orderQueryDTO);
    }
}
